<%--
  Created by IntelliJ IDEA.
  User: ZENG
  Date: 2021/8/23
  Time: 11:28
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>$Title$</title>
</head>
<body>
<%--
    enctype="multipart/form-data"
    以二级制流的方式提交
--%>
<form action="${pageContext.request.contextPath}/upload" enctype="multipart/form-data" method="post">
    <input type="text">
    <input type="file" name="file"/>
    <input type="submit">
</form>
<form action="${pageContext.request.contextPath}/upload" enctype="multipart/form-data" method="post">
    <input type="file" name="file"/>
    <input type="submit">
</form>
<a href="${pageContext.request.contextPath}/download">下载图片</a>
</body>
</html>
